﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IISDeploy.Domain.Repository;

namespace IISDeploy.Domain.Core
{
    public class Server
    {
        #region Fields

        private int id;        
        private string name;
        private string ipAddress;
        private string description;

        private readonly IServerRepository repository;
        #endregion


        #region Properties

        public int Id
        {
            get { return id; }
            set { id = value; }
        }

        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        public string IpAddress
        {
            get { return ipAddress; }
            set { ipAddress = value; }
        }

        public string Description
        {
            get { return description; }
            set { description = value; }
        }        

        #endregion       

        public Server(IServerRepository repository):
            this()
        {
            this.repository = repository;
        }

        public Server()
        {
        }
    }
}
